using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_Base_SchemeMap : EntityTypeConfiguration<t_Base_Scheme>
    {
        public t_Base_SchemeMap()
        {
            // Primary Key
            this.HasKey(t => t.FSchemeID);

            // Properties
            this.Property(t => t.FEmailTitle)
                .HasMaxLength(255);

            this.Property(t => t.FEmailContent)
                .HasMaxLength(500);

            this.Property(t => t.FSmsContent)
                .HasMaxLength(500);

            // Table & Column Mappings
            this.ToTable("t_Base_Scheme");
            this.Property(t => t.FSchemeID).HasColumnName("FSchemeID");
            this.Property(t => t.FUserID).HasColumnName("FUserID");
            this.Property(t => t.FBillType).HasColumnName("FBillType");
            this.Property(t => t.FEmailTitle).HasColumnName("FEmailTitle");
            this.Property(t => t.FEmailContent).HasColumnName("FEmailContent");
            this.Property(t => t.FSmsContent).HasColumnName("FSmsContent");
            this.Property(t => t.FMustSendSms).HasColumnName("FMustSendSms");
            this.Property(t => t.FMustSendEmail).HasColumnName("FMustSendEmail");
        }
    }
}
